﻿<UserControl x:Class="Bocom.ICenter.UI.Silverlight.Common.Maps.ArcgisMapIconStyle"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:esri="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client"  
    xmlns:esriSymbols="clr-namespace:ESRI.ArcGIS.Client.Symbols;assembly=ESRI.ArcGIS.Client"
    >
    <Grid x:Name="LayoutRoot" Background="White">
        <!--  图标表示的意思 -->
        <Grid    x:Name="可视化样式定义">
            <Grid.Resources>

                <ControlTemplate x:Key='TextSymbolStyle'    xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>
                    <Grid x:Name='RootElement' Margin="0,20,0,0"  RenderTransformOrigin="0,0" >
                        <Grid.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleX='1'/>
                                <SkewTransform/>
                                <RotateTransform Angle='45'/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </Grid.RenderTransform>
                        <Border x:Name='Border' Opacity='1' Background='#FFE9FFBE'  BorderBrush='Black' CornerRadius='1' BorderThickness='1'>
                            <TextBlock Text='这里写站名' />
                        </Border>
                    </Grid>
                </ControlTemplate>


            </Grid.Resources>
            <TextBlock Height="16" VerticalAlignment="Top">各图标所表示的意思</TextBlock>
            <ListBox>
                <ListBox.Items>
                    <StackPanel Height="34" Orientation="Horizontal"  >
                        <TextBlock Text="上行线路颜色" Width="100"/>
                        <Path Stretch="Fill"  x:Name="RouteLineUpSymbolStyle"  Stroke="#FFFBA930" Fill="#FF1ECC12" StrokeThickness="5" Height="5" Width="80"  Data="M120,34 L401.5,34"/>
                    </StackPanel>
                    <StackPanel Height="34" Orientation="Horizontal"  >
                        <TextBlock Text="下行线路颜色" Width="100"/>
                        <Path Stretch="Fill"  x:Name="RouteLineDownSymbolStyle"  Stroke="#FF3AC0FF" Fill="#FF1ECC12" StrokeThickness="5" Height="5" Width="80"  Data="M120,34 L401.5,34"/>
                    </StackPanel>
                    <StackPanel Height="34" Orientation="Horizontal"  >
                        <TextBlock Text="下行站点图标" Width="100"/>
                        <Image Width="16" Height="16" x:Name="StationDownSiteStyle" Source="/images/浅蓝.png"/>
                    </StackPanel>

                    <StackPanel Height="34" Orientation="Horizontal"  >
                        <TextBlock Text="上行站点图标" Width="100"/>
                        <Image Width="16" Height="16" x:Name="StationUpSiteStyle" Source="/images/桔红.png"/>
                    </StackPanel>
                    <StackPanel Height="34" Orientation="Horizontal"  >
                        <TextBlock Text="一般车辆图标" Width="100"/>
                        <Image Width="32" Height="32" x:Name="RouteBusCommonStyle" Source="/images/car-blue-32x32.png"/>
                    </StackPanel>
                    <StackPanel  Height="34" Orientation="Horizontal"  >
                        <TextBlock Text="离线车辆图标" Width="100"/>
                        <Image Width="32" Height="32" x:Name="RouteBusOffLineStyle" Source="/images/car-yellow-32x32.png"/>
                    </StackPanel>
                    <StackPanel Height="34" Orientation="Horizontal"  >
                        <TextBlock Text="异常车辆图标" Width="100"/>
                        <Image Width="32" Height="32" x:Name="RouteBusErrorStyle" Source="/images/car-red-32x32.png"/>
                    </StackPanel>

                    <StackPanel Height="34" Orientation="Horizontal"  >
                        <TextBlock Text="驾驭员请求图标" Width="100"/>
                        <Image Width="32" Height="32" x:Name="DriverRequestStyle" Source="/images/flag-cyan-32x32.png"/>
                    </StackPanel>
                </ListBox.Items>
            </ListBox>


        </Grid>
    </Grid>
</UserControl>
